#ifndef __MQTT_H__
#define __MQTT_H__

#ifdef USE_MQTT

#define KEEP_ALIVE 120
#define MSG_MAX_SIZE  512

// #define MQTT_HOST "aex.dasenos.com"	//AT+MQTTCFG=aex.dasenos.com,1883,%s,120,AndroidEx,androidex
// #define MQTT_PORT 1883
// #define MQTT_TOPIC_RX	"aex/kc031/receive/20e79d9d-8c82-4fc9-ab18-303c2faf7b02"
// #define MQTT_TOPIC_TX	"aex/kc031/send/20e79d9d-8c82-4fc9-ab18-303c2faf7b02"
// #define MQTT_UUID	"20e79d9d-8c82-4fc9-ab18-303c2faf7b02"
// #define MQTT_ID	"kc031-20e79d9d-8c82-4fc9-ab18-303c2faf7b02"

int mqtt_start();
int mqtt_quit();
void  mqtt_pub(char *buf,int len);
char *mqtt_get_sub_topic(unsigned char modid);
char *mqtt_get_pub_topic(unsigned char modid);
int get_mqtt_connected();
void  mqtt_pub_with_topic(char *topic,char *buf,int len);

#endif

#endif